package com.front.teacher.teacherapp.view.activity.mine;

import android.view.View;
import android.widget.ImageView;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.TextView;

import com.front.teacher.teacherapp.R;
import com.front.teacher.teacherapp.base.BaseActivity;

import butterknife.InjectView;
import butterknife.OnClick;

public class PersonalZiLiaoActivity extends BaseActivity implements View.OnClickListener, RadioGroup.OnCheckedChangeListener {

    @InjectView(R.id.personalziliao_return)
    ImageView personalziliaoReturn;
    @InjectView(R.id.text)
    TextView text;
    private RadioButton radiobutton1;
    private RadioButton radiobutton2;
    private RadioGroup radiogroup;

    @Override
    public void initView() {
        radiogroup = ((RadioGroup) findViewById(R.id.radiogroup));
        radiogroup.setOnCheckedChangeListener(this);
        radiobutton1 = ((RadioButton) findViewById(R.id.radiobutton1));
        radiobutton2 = ((RadioButton) findViewById(R.id.radiobutton2));
        radiobutton1.setOnClickListener(this);
        radiobutton2.setOnClickListener(this);

    }

    @Override
    public int getLayoutId() {
        return R.layout.activity_personal_zi_liao;
    }


    @OnClick({R.id.personalziliao_return, R.id.text})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.personalziliao_return:
                finish();
                break;
            case R.id.text:
                break;

        }
    }

    @Override
    public void onCheckedChanged(RadioGroup group, int checkedId) {
switch (checkedId){
    case R.id.radiobutton1:


        break;
    case R.id.radiobutton2:

        break;
}
    }
}
